const TitleBar = (props) => {
    const back = () => {
        history.back();
    }
    return <div className="relative w-full h-[45px] bg-primary-color text-white flex flex-row items-center justify-center">
        {props.isShowBack && <div onClick={back} className="absolute left-[10px] flex flex-row items-center gap-[3px]">
            <span className="iconfont icon-fanhuijiantouxiangqingye"></span>
            <span className="text-[14px]">返回</span>
        </div>}
        {props.title || "标题"}
    </div>
}

export default TitleBar;